added namespaces and started to port some stuff over from my graphics renderer. started at the first iteration of my 3d renderer, so it's kinda crap. I'm going to be porting my changes one at a time.