fixed bugs in convert script

finished import.sh