Rewrote CoolSIM XML export to match our template and changed the code so it can be linked from another page to generate the export. close #360