Implement extended csv format, merge with batch processing of CLI