Updated .gitignore and fixed immediate bugs