Add plugin version, character encoding and remove

some warnings.
Remove deprecated methods