Wrapper for FFTW library, misc. fixes