update galaxy composite code to compute RMS and residuals of all max brightness spectra