pca_all_scalprops directory and codes are added
common functions are added