added mat writer and changed the vtk writer a little