new stopping criteria in Newton solver&updated worksheet printing