Finished work on PCA.
Needs commenting.