update R script files and edit readme