fixed for issue #10
fixed for issue #11
meke render method chainable
generate docs for last change: 9bac98a