chapter 6 commit

added content to functions.php, template-tag.php and tweaks.php