Fixed command function
Added plugin.yml, Registered events,