Implemented MeasurementSet.to_file()