More fixes in writeVTK, added more docstrings