Put all cuda stuff in its own file, and added a .h file