Fix typo and grammar in code documentation