added doc_type to Document class