I fixed the ref tag problem. When you use the "ref name" coding, you have to use exactly the same name every time you invoke the named source (this includes quotation marks if you included then when you defined it), and the subsequent citations need to end with /> (not /ref>).