Added inverse fft and csv writing support