Cleanup + documentation in symbol table building.

Still some work to do with the Undefined types/infos that are
being added.