Change some error handling and update the config file

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>