Add main class to plugin.