You are allowed to look into the code of the plugin and use it in your own plugin as long as it is not an EXACT copy of Invrotate. Whether you have the decency not to copy my plugin and say it was your own is your decision. You can decompile it and copy parts of the code.