The easy way to get a plugin to re-install during code development is to "bump" (increase) your version number in the file version.php. This has to be done if you change things like your access.php or settings files.
There's some sample code and some tips here that might help: https://github.com/richardjonesnz/moodle-mod_simplemod.
There's some sample code and some tips here that might help: https://github.com/richardjonesnz/moodle-mod_simplemod.