added a direct xgmml writer that does not use jdom but directly creates the xgmml file, saving a bunch of memory.

also created the linked neighbourhood with depth extraction but still lots of work needed to build a proper architecture