old prim code and pca prim moved to primCode, is deprecated by now.
PCA code moved to prim, still needs to be tested.