Fixed a bug, changed maxepochsize to 100000 to save time