Slightly changed on writedata.py by adding pot and accurant tracer for different type particles