touch and motion events

Touch and motion events are added. Button was deleted. Encapsulation
and organization improved.