adding spectrogram, power spectrum plotting code