Add more internal documentation