Fixed a few minor issues, plugin now usable