Added PCA code; todo: transform obs tuples to list