Added gitignore
Added snap-commit-hook as a script
Proper exit codes in cli
Move code to #main