Fixing all mem leaks
More contolled cuda error checks.
Removing unused vertex ids.
Removing unused functions.
Trying to compile with debug output.