Several changes to handle standard FITS spectra files