Added version check to handshake, improved reject packet