adds .gitignore and changes a few errors