fftw.cpp: tidy up and document