buffed up the gamma distribution fitting example