Test downloaded file for corruption and retry 5 times

These changes should fix #102.  
What happens if this fails?