Add support for optional plugins, minor fixups

All other debug output is lower case.