minimal fixes, unused touch images removed, functions and some mixins added