added comments for gradient descent algorithm