Refactor and introduce native document object with convenient getters inspired from docunet.