fixed a lot of small tipos in the commands

also make the cur_state work