Add more comments and the debug() function.
Also first draft (very incomplete) of PeerToPeer.