Updated G3D to newer version while also renaming a bit of code so it fits better.