add document to repository