Added getOpenGLVersion
Changed debug to printf