MRG: Glm fixes

This PR includes a bucnh of minor fixes on the GLM API.