throw an error if length of spectra and peaks differ
Merge branch 'regular'