Added roxygen2 documentation
Fixed mri test statistic