added magic token validation and test
cleaned up tests
added invalid hello test
added peer management logic
clean up