CUDA error handling, some cleanup
Full refactor to new .h paradigm complete. Transforms fixed