replaced cutils.h from CUDA 4.x and its functions with new headers and functions from Cuda 5.x
Added error handling to the time function