create a new document type