Accelerometer

Added accelerometer, not yet tested.