Test downloaded file for corruption and retry 5 times

These changes should fix #102.  
Won't this swallow the error code and look like success?