Fixed some minor bugs, and added getAverageFitness();