Gathers reference spectra and attaches them to peak_table object. Reference
spectra are defined either as the spectrum with the highest intensity (
max.int) or as the spectrum with the highest average correlation
to the other spectra in the peak_table (max.cor).