Added document generator.
Updated documentation.