Fixed problems with generating the correct JOSM file format. Ready for production.