update the PCA R file and add a pdf document