Updated the ReadAndWrite example
Merge pull request #60 from mdxs/upd_read_and_write

Updated the ReadAndWrite example