Initial commit from cran pacakge