New changes

Adding comments to the second function and corrects first function
comments.