Added basic framework for document processing