Error checking.
Tiny cleanup
Merge pull request #79 from anas-ambri/targetFitnessEval

Error checking.