finalized the test and creation of the average_spectra()