Small fixes

Added small fixes and methods on GeneticAlgorithm