Fixed variance explained part of PCA.m and some errors