fixed some log bug, finished import program