wrote WALD statistic and some more comments