Accelerometer controller [#21]
Refactored controller code, UI working with accelerometer [#21]