fix typos in comments and doc