Added functionality to save templates, -s path