cleanups, phpdocs, drop unused $smarty param