added documentation for the #render method