* fix skinnyglm class to deal with empty sub matrices
* lots more commenting everywhere.
* small typo in glm_factory