Add main file
Add api to plugin
Update constructor