moves exceptions to config.py
Adds partial cmdline interface