ENH: improvement of GLM generation and reporting code