Add debug option and handle errors better
Add support for configfile-based options
Update change log