Changes to PCA. Tests passing