Added comments, particularly to the render_all function to seperate out map rendering and panel rendering.