Update MNB2.java

Outputs to file