updated readme and R script