Add DocumentClassifier

Added DocumentClassifier class, and its test class.