modify add_states and add _update rule_for_states function

add_states can now add new states to nodes with existing states