Made functions static.
CUDASimulation working correctly. Fixed CUDA compile flags inside CMakeLists.txt