Fixed error caused by unallocated indices
Added alerts for PLY files containing non-triangular meshes.
Fixed another allocation problem