adding message that works
adding tol and logging number of iterations and convergence time