fixed variable substitution in markdown
fixed missing Template import error
copying tree of files