Update CMakeLists.txt
Add thread support
Add thread safety
Add naive grid
Fix refraction
Clean up