Error handling, and added config to list configuration variables