some updates

added a template wrapper, fixed a bug with the date formating