added comments, typo fixes.