Moved the kernels to kernels.cu

Moved the kernels. Made some formatting changes.