Add generation of documents.
Update Dirs interface, it was returning the wrong type.