$modname var in smarty template removed, closes #1.