Added a .gitignore and changed the install script

Cleaned the install script up. Needs testing, though!