Stabilizer now receives and stores state values, keeps track of which instruments are connected.
Fixed some bugs in input processor. Added validity check to input arguments. Added per-instrument state storage for gui.