reviewed the factor 2 in the normalization calculation and confirmed it for beta model, aded commentary to the code. Integral convergence and independence on the order of variables has been tested and confirmed