Improvements to accelerometer project