tidied uploads (need to rename function) and started handling of KML files