Added import progress bar and some fixes.