Fixed some typos and removed cruft.