added documentation info for gradients
updated docs