add unlink and some asserts

Original commit message from CVS:
add unlink and some asserts
2 files changed