fleshed out accelerometer and gyro classes