Merge pull request #1 from nouiz/master

[MAIN] Update grad() method to don't return None.