Minor spelling fixes to code/doc