Added writing of a syntactically correct xia2 file.