Improvements

* Added a public `destroy` method.
* Updated unit tests.
* Fixed `extend` function.