Document Processor Controller Pseudocode

Pseudocode for the controller of the document processor.