added plugin version header and refactoring usage