states refactoring
update README