Added a call to get altitude in main
Removed some redundant code in altimeter functions