Fixed a very bad typo, which made the model mostly work. It is still a little bit inaccurate, possibly for numerical reasons.