Added destroy function + updated documentation