cleaned up lib / updated package.json / added check for updatedat and createdat fields prior to delete attempt