Added constructor to DocumentModel