fix typos in code and docs