Some fixes

Fixes for accelerometer calibrate.
Fixes for project.