Updated collectd plugin to fix and streamline it

Removed superfluous variables.
Improved documentation
Fixed state variables and how they’re populated
Fixed @typesdb detection in run to send array instead of string.