Update pca.cpp

partial implementation of comments