added comments to ConnectionSemaphore class