Added gitignore and fixed issues