Fix for header and param MDC parsing
Extra error checking on config
Updated the example