fft updated

capture_wave function now seems to be working