added check in updateNormals and barycenter if vertex indices are consistent
made index unique in getFaces