commented model.py THOROUGHLY and neatly