cleaned up PingMeasure, worked on testMain