added Delete function

Fixes #21