reconfigured app to use coremotion, put gyro and acceleration in same handler