Add a proper section on SGD. Do some TODOCHECKs.