Typo fixes in internals doc

A few typos in the internals documentation