added various features, revamped accelerometer controls