Code update

Added characters, fixed thresholds for gyroscope/accelerometer, added
touch events.