Proper State System

The states to apply can be defined in the program arguments now.