Fix bug in object deletion and add reset feature.
Merge pull request #1 from fiksu/initial-changes-to-support-reset

Fix bug in object deletion and add reset feature.