new accelerometer algorithm
Refactored Accelerometer and animations