Fix some doc typos and delete trailing spaces.

Yeah, just some typos in the doc. By the way,  I suggest the doc author get a better editor with good spelling checker, haha.