Initial commit of interface to R code