Updated fourier predictor. Derivative calculator added.