Initial cut at PCA, currently only JSON output works