Fixed fft generation. Also added useful comments and descriptive variabl...

...e names