extend and add features

extend: additional options object
add: two options: HTML file or templates string