Added DetailViewController. Recognize shake gesture. Saves motion data every second