options parameter for constructor
updated with tests for constructor options
added test for tag nesting