CoreMotion sample code. Loggin location and motion activity on map.