Fix many bugs

Many NPE's Found and neutralized

Currently Broken: Commands, Repeats
Fixed Command Instancing.