Added option to generate documentation.