refactor plugin

change init to install, and add uninstall