Fixed typos

Fixid typos in comments and code.