Improvements to plotspectrum. Not correct but closer. Need to average magnitude.