Found error: passing alpha and beta parameters as int and not double, clean up R and Rcpp code.