Added script and function to return csv or tab separated event information