New functionality: Rename local variable

I added a new functionality (rename local variable) to the plugin, I made this request in case you are interested, I changed a bit the code so both commands reutilize the same code.

Marc