updated PCA.m to change directories when necessary