Added gitignore and fixes