tweak sgd functions, remove old svi example