update model to 0.2.1

added delete function