improved algorithm for charge detection
color coding of peak groups in spectra widget