Fixed documentation system for submodules; part of #254.