Add docstrings to rectangle.py