Fix minor typos in comments and documentation