Added some function docstrings