Added docstrings for first nine functions