Please accept my changes

A really great plugin. Unfortunately, a few errors were discovered after the installation.
Therefore my adjustments. Details are given in the log of the files.