Saving accelerometer data to files working now.