Added cudaDeviceSynchronize() to be able to collect profiling data. Cleanup of nsight project