changes to fft to get it working with all acceptable numbers and changes to plot to enable ploting from csv