Added more comments; minor cleanup

See changes to rd_pingsensor_globals.h as well