Cleaned up R code.
Removed unused field in JSON file.
Fixed error in R file