update year to 2013
Move debug information output to template