Correct inconsistent date and add fft functions