Fixed some typos

Fixed some typos in the comments and in the code.