Updating README and fixing read/write bug