Add some more modules to the docs and fix bug in creating nested module docs.