added module to simulate spectra