Revised README and simplified the logic a bit in ChatState.java