added scripts for spectral simulation