Fix for Rails 3.2.x
Update README
Merge pull request #2 from sadjow/master

bugfix: state must be saved before each interation