updated naiveBayes to do bayes stuff for all files and output in way that can be caught by shell scripts stef wrote