UPDATE

rewrote and refactored parts of the plugin