Fix spacing in PCA.cpp and add assertation for function parameter