Put all code into a class, removed method prefix for easy readability, plugin activation fails if prerequisites aren't met