Added template to starting data. Added trim to save functions