In R factor score script, now writes data to csv file.