Added debug messages to plugin loading system