Debugging autodiff
Adding comments
Improving generated code