use TdLoggerService instead of Thread
refactoring
add some packages and some tests
add test and refactoring