Attempted to add buffers and matrices for all kernels. Currently this is not working.
Added some comments to highlight where I think there are errors in the implementation of buffers for each kernel.