Fix #5 and finish implementing the ping API with documentation