Improved the PluginMessage Code a bit and added DispatchCmdMessage