Put downloader into single function. Initial work for accepting command line arguments.