added some comments and small fixes for cuda test