simplify PluginResource
added windows script for run demo
minor modification