Rearranged kernel code, wrote some notes in header file. Still need to implement cuda_init to start kernel