Fixed several bugs in the implementation of import and bowtie
Fixed bugs in implementation