integrating peak finding into fft programs