Naive Bayes bugs fixed. It works! Terribly... but it works!