start to improve gesture detection:

#21, #28