Half of it is PM's code.
There are many ways to make a XP plugin, I got my way, and PM got his way.
You havnt changed so much in the code, so you can copy and paste my full code in the tutorial and change the stuff you want...
If you want more help from me though...