fixing script genDDG
fixing bug #10