Update .gitignore, remove debug file writing code