add gitignore and composer.json
remove superfulous exit from redirect