Cleaned-up, added comments to gpu_utils.cpp