get elevation data from gpx
Gpx initializes with path instead of File.open, some style improvement