fixed naming of files in rf.R file