docstrings + error messages