Allow Command.toXML to accept an existing document
Merge branch 'master' of https://github.com/ajd4223/swen262_s2t2