Finished Newton and Krylov general