Better controls, and other optimisations

- removed crappy templating functions, now just add the markup first
and then pass selectors to the function
- optimised touch event detection
- styling adjustments