Fix for Safari

Added header Content-type & exit; at end of method to prevent Safari
downloading .csv as a .html file