Fixing incomingMessage sending it's own peerId

and various other bugfixes and documentation updates