All functions working with examples. still to find way of checking variables in function 'ds.glm'.