Updated download method to check for errors.
Removed modules that weren't used.