added some comments and little changes in the ConnectionHandler
small changes