rename add_states to set_states and changed it to accept dictionaries
Merge pull request #57 from ankurankan/dev

rename add_states to set_states and changed it to accept dictionaries