add .gitignore

Also, what is the licence?