Inverted stateout and statein that were flipped in iteration algorithm
Corrected an error in infinite homogeneous simulation (main com node instead of main operator).

Starting to correct problems with relative constraints.