Updated PCA to use stats.cov function. Added stats.var. Added documentation.