Fixed typos in comments.
Added comment for new function.