Refactoring, namespace dt added, one CMakeLists by lib