Updates gitignore and solved bug