Added docstrings to base.py