psd function is useful for automated data analysis process the output as well, would be nice to have it as a function call instead of just a plot.