clean up code

Correct various bugs. Normally the main algorithm NSGA-II works !