Added compare insead of write; updated .gitignore