fix bugs, improved code, added mnist image loader, number recognition