Added comments & docstrings