Updated Download.pm file to fix issues with downloading using fixes from issue #27 comments from master branch, also added test folder with my own test