Improved meta data names. Moved R code to an R directory.