Revamp

Contains codel by @v0dro https://github.com/SciRuby/statsample-glm/pull/2