docs annotations added.
onPeerConnected implementation and annotations added.