added state based rules
splitted parameters in new file
improved value and state operator flow