Fixed some typos in the code and docs