New classes for much simpler and more reliable passing around of config info, improved debug message usefulness and added error message for future use