added docstrings to all code in Things
added a bit of cleanup
finalized first version of XML export