fix some bug, add the data generator class and data class, fix some style problems,change the SGD doc to BGD.