fixed incorrectness in programs.cu
added cuPRintf for debugging
added prior kernel back