Adds part of chapter 6 code
Adds naive bayes classifier to docclass [chap6]