Added I/O tests. Added PCA mesh generator to utils