Keep track of CUDA modules.

Added code to keep track of the currently specified CUDA target modules.
Also updated comments and TODO statements.