script for automatic documentation generation