Added some OOP concept to the plugin. Feeling kind of happy right now...