fixed examples in groupPCA and error in case data is a matrix in "placePatch"