Docstrings and Comments added