Added CSV writing support
Added generation script