adjusted accelerometer against gyro
added invert rotation switch