Added id to exported documents and fixed DocumentNotFound references.