Some streamlining

I hope you like this.
I would like to help you get the code up to speed with WP PHP coding standards.
Also convert to OOP, maybe? Refactoring code is my thing and for this short plugin not a problem at all