added some comments to the clientmanager, and added the reconnect function, untested