Model can now read to and write from hdf5 spectra file.