fixed typos and grammatical errors in code comments.