fully implemented ping(), added some convenience functions and implemented parts of the Kademlia constructor