Johan contribution xgmml output + prints