Restructured the files and added a CMake script.