rename dir code to src and root CMakeLists.txt