save_pca, fixes, reformat