Updated to make doc building more centralized

Also adds a new module rst file generator for autodoc