Separate out the class into its own file
Make sure that the plugin is activated after creation

Fix bug with functionality plugin not being properly created
Use the proper activate_plugin() function