Added writer example.
Fixed indentation of the reader example.