- fixed some bugs
- added some code for linking cleanup on delete