overhauled sdl examples and bugfixes