Updated CMake flags for CUDA
Simplified some of the struct packing
Merge pull request #175 from izaid/apply

CUDA CMake flags and struct packing