improvements to downloadFile function
fixes on downloadFile function
Merge branch 'sprint-3' of github.com:rumblefish/fmpro into sprint-3