added a first implementation of the processDocuments: now nodes are
processed