Altitude max and min values has been added to the altitude graph. Some minor bug fixes and code refactoring.