Wrote newline handling and added gitignore file