templates can take different formats now
nested examples
added directory nesting