Made some changes to PCA lib

PCA lib now works reliably