Added ability for check_downloaded_file to be imported from local
version.
Fixed some minor bugs.