AstroGPU Internals of the CUNBODY 1 Library