Reverted dynamicaldecoupling.py as was modified by Git for MAC -MAR
And fixed a small bug in DD that was previously fixed -MAR