hyperparameter d is no longer drifting off into the sunset. I had a - sign in lD() that should have been a + sign. Fixed.