New run scripts
more sophisticated chi2
made the program run until chi2 was minimized.