Docstrings and logging