added multitouch and improved gesture recognition