add comments to runMiniBatchSGD