cleanup and enhancement to the leapmotion controls