minor bugfix: suing the right command now.
implemented the rest of the xml writer methods.
finished implementing export() method.