Enhanced documentation generation