Fix some typos in code comments and documentation