code reformatting / cleanup
implemented touch/click controls