updated documentation and tests
added destroy() to class