Adding writeCSV function to igl