adding clientConnected and clientDisconnected messages.
Adding lots of comments