Create main plugin class.