Add ifnone param to detect to handle missing branch
Refactor argument handling
Merge pull request #6 from alexcruice/missing-branch

Add ifnone param to detect to handle missing branch
Merge pull request #7 from alexcruice/refactoring

Refactor argument handling
Exit program if invalid parameters are passed in