Magnetometer calibration and remove of unneeded files.