[FACTOR] Adding buffer swaping method to displaySDL

Adding basic example to set up an application with a SDL display.
Small fixes.