completed pca workflow--all fns coded in nb