Multi dim fit

Added a more intelligent spacing of points in 1D fit.