Add .gitignore
Fix signal handling
Remove some debugging code
Fix merge confict
Merge pull request #3 from jvns/master

Fix signal handling