Added inline comments

And updated the render doc comment