Added vsync option, implemented Toggle GUI element