Adds some docstrings.