Fixes PCA (issue #13) and adds necessary tests
Fixed type instability in PCA
Fixed function comment in PCA
Merge pull request #14 from cbecker/master

Fixes PCA (issue #13) and adds necessary tests