adding comments, fixing typos