Fixed typo and added comments.