added code to read vtp and vtk legacy files