added a config file, some exception handling, and an exit message

: )