Clean up gradient descent. Add examples to default build.