Make sure to look at the accompanied Application note with the sample code. I believe it answers most of your questions.
You can record the data the the same as if you were using any other microcontroller. If you do not like the sample code, you can always write your own using the sensor APIs for accelerometer, gyroscope and magnetometer.
... View more