Added documentation to modeling.py