Added gitignore file
Changed else if with elif
Fixed csv header

Now csv header is added once, on top of file.
Merge pull request #1 from rodrigorega/rodrigorega01

Fixed CSV header and added gitignore file