First commit of R code, README and LICENSE.