Added more documentation

Added receive_handshake_response() and various documentation
Also removed various redundancies