PCA pipeline improvements, use out folder for intermediates