render function implementation

A public branch to allow direct collaboration on the render function implementation.