Documented and cleaned up gradientgen.go sample.