Test downloaded file for corruption and retry 5 times

These changes should fix #102.  
Yep, if it fails 5 times, then it will try to process the file anyway (like it did before this change).  It would be possible to bail early, not process the file, in the case of 5 download attempts in a separate change.