See extended change notise.

Inverted some if's in PriorityTreeState to break; (dunno if that works)
Added Sap routine to a pulse instead of having it inside the State
Machine (untested)