Problem with disconnection clients fixed, code docummentation added