first draft of generating documentation