Added README and fixed a bug causing invalid 'modified' state.