Changed to yield based return from processing

Making the process method generator based allows a single input to spawn multiple output documents.