Added doubletap events and fixed numerous bugs