updated comments, fixed spelling error