Fix a couple of small code issues in the readme

Changed the state name property to `name`, provide a default value for `filteredStates`, and a couple of minor fixes.