add soft delete and fix keygen
Merge pull request #3 from hoist/feature/soft_delete

add soft delete and fix keygen