Improved error handling with regards to config, but also started work on moving config stuff to a separate command.