change function fromGPS to deformatGPS
added Integer-factor downsampling code