Added option to output results either as CSV or Markdown