Improved HandShake

Now gets the peerID of the connecting peer from the handshake message