new version of code that extract spectra. Now I'm putting them directly
into the props structure rather than creating a new structure.