Updated sample to demonstrate how to read/write document data.