update with proper GLM dispersion estimation functions and rename script