Start of config system, customisation of generic messages and slight changes to debugging