finish documenting the SDL/WebGL frontend code