Improvements to the documentation system