added document_type model
added a document_type field to file
lots of stuff