added comments, fixed typo