Added a line to display iteration and root and added a line to break if error criterion is reached