streamlined.  But something is broken in square kernel or kernel call.
still trouble with running/compiling square kernel on GPU.
totally functional
melded all kernels into one kernel file.