better handshake messages
added failure modes to all handshake stages
client close command no longer sends two server commands. closes issue #99
removed debug commands
added config file
removed commented code
fixed typo