Adjust interface of MBSGD and add more documentation.