leap motion integration and some alterations