Changed usage of DocumentTrait attributes from public to setters/getters.
Merge pull request #18 from gimikus/document-trait-attributes

Changed usage of DocumentTrait attributes from public to setters/getters