Now using FFTW library. Some other minor changes.