Updated plugin usage syntax

- Encapsulated plugin-specific functions.
- Updated how plugin is initialized and used.
- Updated readme.