as of now, server and client can now connect and reconnect. now, working on documenting code