Migrated to coreData. Added Accelerometer manager. Added extension. Refactoring.