small bugfix and useful gitignore