added epoch control to main.py training cycle