Added docstrings for new functions