Update MNB.java

outputs to file now