Tested XML loading, added example file, implemented Factory.