add command module
don't always print a default command
move all state member variables to the state class