fixed all warnings except for id2addr, which can be suppressed by adding '-w' to nvcc but wasn't