added functionality and rename divvy_spectra.rb