reviewing htod and dtoh
fixed CUDAPATH macro
reviewing
ready for testing