minor refactoring & input validation
- better type hints
- input validation in decoding, raises ValueError when anything that isn't a
dollcode character is passed in input
- wrap main() logic in try/except block to neatly print errors and exit with
sys.exit(1)