added R output file processing script