604 add xls export to data endpoint

closes #604
this log code, to line 198, should be in a separate function