modify add_states and add _update rule_for_states function

add_states can now add new states to nodes with existing states
refactor _update_node_observed_status
refactor _no_missing_states function
refactor _no_extra_states function
Merge pull request #43 from ankurankan/dev

Refactor functions