Added some docstrings.