Additional definitions and comments.
Fixed a bug, in order to be able to use more data with less global device memory.
Less data in global memory; more data transfers.