Added plugin header, and refactored to look more like other libs