Fix for newline characters in output fields

You may also conside following commit - added .gitignore