Cleanup and fixes to accelerometer class