.gitignore and bugfix for find_border