Added destroy method and changed the structure a little

## 1.1.1
- Added destroy method.
- Moved functional declaration to newer supproted plugin format.