Added error system and OpenGL beginnings