An android library of gestures based on mobile sensors