Improvements:
- better gravitational acceleration correction
- only z-axis is observed
- Removed printlns in order to reduce latency