Refactoring and fixing dehtable

Fixes #12
    Unlink sometimes breaks the directory entry chain