New Document Processor

Remade the document processor.