Added an optional callback for the ping function

m.ping(yourCallbackFn) will call yourCallbackFn(m.pingTime) once it is
resolved.