refactor some things

most notably don't rescale and demean when doing pca because that makes
rotation matrix wrong