Put log table output into function, minor changes to introduction.php