Added docstrings to functions and variables