Update CMakeLists.txt
Update init and version check functions