Added some more waypoint info to waypoint tooltips. Refactoring & optimization.
Fixed handling of GPX files with inconsistent trackpoint entries