Prevent topology to process a rating multiple times
Fix bugs in redis state
Add javadocs to states