Added three comments
Used array notation with int32 indices
Added const to kernel arguments