Implement hashCode functions
Refactor methods downloadFile and submit
Fix tests