adjusted some email tags for full working link
added templating functions
fixed timestamp displaying in email