Added an explanation of the render function