Fixed typo + added a few comments
Fixed bug for when CG reaches the max number of iterations