Docs: new structure and updated docstrings.