now saving the options to the default when you save a template, just like we do when creating a document. Also changed the name of 'data' in the save template function so that input and output aren't so easily confused.