Made some minor changes to the XGL main class.