minor fixes, added states file