Added code to record audio and accelerometer data.