Added some more internal documentation.