Added basic initialization, xml importing, and a few other minor things.