fixed errors in mnist.py and added two new methods in IO.py