added documentation in docstrings and finished checkout.py