fix save bug in nntrain
fix mnist example