Bug fix and GPX

Fixing a bug with file upload and adding ability to upload gpx files

Adresses #841