added comments and code for doing fft