Combined the working with the new

Combined the working file with doug's new file. The logfile is still not working correctly but the file does download and you can use args in the command line.