updated plugin header
added plugin initial functions