Generate CSV from Array