Add get  Gyroscope and Accelerometer information code with CoreMotion