finished the model.tex rewrite