Use Chan rather than MVar for state example; be clearer about errors there.
Fix Chan code.