try to use power instead of amplitute in the spectrum; some change in attempt to give better peak detection