fix the issue #80 and delete the unused log and chage the print metheod to using console module