adding uninstall hook; adding uninstallPlugin function; changing  to static