Gradient fixes , added options and minor fixes