code refactoring, created class Device and integrated it to kinect classs