add roxygen of Z_i.hat
expose U.gen, Gamma.hat.gen
implement phi.gen, Sigma.hat.gen