added generate csv function
Merge pull request #1 from anush0247/master

added generate csv function