plugins: resgister commands.
plugin: implemented main.