Register plugins, add some comments