adds some docstrings