spectrogram code now returns dataframes

plot code also takes dataframes
tentative code for time-frequency plotting (not tested)