fix min/max/abs dual functions for left/right derivative. add docs for duals.