Discard (null) imaginary part from C and D, fix maxima calc.
Add scaleABCD (completes dsexample1)