Cleaned up the code a bit and renamed Spectra to SpectrumPlot.