fixing some bugs introduced with the coordinate conversion
adding nvcuda.dll to allow execution on machines without nvidia cards