bugfix and added .gitignore