update code of exporting CSV and generating motion from VSQX