add comments and cleanup
change distance measures to double in GPS DB logger to align with distance calcs in Chart