correct _update_rule_for_state function
correct _update_rule_for_states function
update tests for _update_rule_for_states
correct set_rule_for_states and add get_rule_for_states functions
tests for get_rule_for_states and set_rule_for_states
Merge pull request #48 from ankurankan/dev

correct and add functions