added SetPDWeights helper
to double
Fixed a wrong condition in MaxToMin
added new scenario
small fixes