Changed 'accelerometer' to 'gyroscope' in a few places.