add csv to init data
fixed merge function
fixed CSV download
Merge branch 'dev'