Change a little the structure of the opengl wodget class and add comments