Gradient updates
Merge pull request #101 from CyberAP/patch-2

Gradient updates