Added and tested deviance comparisons
Adjusted dgamma fitting for more stability