removed LWP::Simple and a head() request in getUrl(), saves 1 request per file. Other minor adjustments.