fixed getObjectXML
fixed codesniffer violations and a couple of typos
Merge pull request #78 from ajstanley/1.x

fixed getObjectXML