Reorganized code, generated documentation.