Fixed major bin finding bug. Added centering. Can now change parameters in fit.