added comments
fixed hiding of the mouse