Cleaned up the main code and made it better readable. Whats left to add is the code for the SDLGL_AREA_TEXT... and SDLGL_AREA_SLIDERBOX. And there's the lack for the additional possibility for SDLGL_AREA_NUMBERSEL for support of strings in place of the values.