Spectra files, new archive

+ new functinos for analysis