Mostly just some cleanup #1

Merged
merged 1 commit into from Dec 1, 2011
Commits on Nov 21, 2011
  1. minimize code and create directory if not defined

    aggrolite committed Nov 21, 2011
    -use $ENV{HOME} for save_dir
    -use File::Path to create directory if it's missing
    -add case insensitivity to url/extension regex
    -minimize some code