Added docgen documentation to devel branch

Replaces pull request #799 by merging into develop branch.