updated specs
updated specs and added ability to invalidate classes of keys