added OpenGL/data structure/thread code