Updated automatic config generation.
Updated documentation.