Fixed minor formatting
Fixed error 1 on handshake, because different method was being used between client and server