fixed bug in naive bayes + added code to ignore model.dat (too big)