Cleaned up the kernal code a little bit and began to write the pycuda DCA assembly function.