Reorganisation of files and addition of PCA functionality.