Added ability to get document contents
Merge fix