added comments to connectionhandler methods