Changed function documentation such that it uses roxygen2.