refactored the distriregression package.