Fix to allow Poisson error distribution

Changes to replace noise estimate with generalized linear model fit that
allows Poisson errors