added code for exchanging pPCA models between statismo and R.