added prior pdf calculations, changed hazard priors to uniform fixed gstat calculations and some bugs in wtab that didn't handle 0s well