added documentation info for gradients