Changed usage of DocumentTrait attributes from public to setters/getters

....