added gitignore, write as csv