Added public accessors for average fitness and generation

Modified main code to run until it gets all perfect strings.
Pass the max number of generations to try to the program.