Changed main plugin file to Class