Added doctests to __call__() and render()