removed debugging output
cosmetics
made XML export more efficient