Refactor exporting to be more regular.
Start to document some other stuff in this space.