OpenGL initializing

The code to initialize OGL is added, and so is the shutdown code.