plausibly working gradient tabulation
A little logical refactoring
Now test with grad.
missing dependencies
Files for travis