Model structure added

This will probably change. Need to think about calculating all positive
terms first, then all negative terms second. Think about the chronology
of things.