fixed the loading of data. It's accelerometer first, then magnetometer in the
data file