Add numerous changes to support state space models (still with 1 input and 1 output though), including new parameter plant_x to examine state space.  Not tested at all