loginserver can now ping/pong, fixed an error in readme.md and refactored some code