finished writing training module. only have to do averaging now
changed the historical table to store the iiteration id. added avrging. need to test it