Additional argument added to 'ds.glm' and checks amended.
Changes on the checks and sone bugs fixed.