Changed the state endpoint to states. Fix #99