added touch support

added two utility functions and an init call to add touch support to the demos. tested on iPhone and iPad