The model module has been corrected and documented
More documentation added to model.py