readability improved and some CUDA 6.0