added plot spectrogram function