minor tweaks in download_file function
use inner function to remove faulty download
flesh out remove_file
Merge pull request #7 from boegel/download

minor tweaks in download_file function