added protection against null gradient
Merge branch 'gradient' into nn_ex
fixed logging of data for sep cmaes