Some modifications to your plugin

Hello, I just... edited some of your code, I hope you will see it as some improvements ;-)

Bye