Added DocumentProcessor class