kinect events added, code cleanup