Fixed typos and improved phrasing in comments and documentation.