updated syllabus writing functions to better support new PHPDocx