added CenterMatrices, minor changes to other files