Adding feeds default config.
Protect against array config values.
Adding debug logging; fixing log return value.
Fix karma inc/dec.
Formatting.