Wrote file output code. Not checked, but should work.
Merge branch 'master' of https://github.com/mremad/BayesDigitRecognizer