added logging to spectra
adding logging to model modules