better import script, fix some bugs, improve gui