Lots of changes and fixes, mostly minor, to allow functions to work with glm and svyglm objects. Still needs a lot of testing but on the different models I have tried so far, most of the functions work.