add write_xyz to store trajectory readable by VMD