finish initial writing of cwfft function