Added more docstrings to functions

Added more docstrings to functions