add some details to documentation on check_gradients