fixed a typo and added a missing word in comments