Big update of documentation automation.

Now set up to generate the documentation automatically from source.