Doc mod support

Adds doc generation support for modules.