TA02: Refactoring of DocumentCategorizer to provide best category and other changes.