gitignore and some little fixes