Not sure if you intended you latest commit (with refactoring) for consumption but I'm running into an error when opening up the document in MS Word: 