Add state auto command, and other things
Debugging and fixing stuff (this was all stuff edited on the last build day)