Pure Temperley model is now working as well. Now to add mixed model.
Fix to bug in pure Temperley approach that only popped up in later iterations.
Testing version of mixed model.