fixed a few function names and added remove()
added setWithPriority() and priority()
added all sorts of events and stub for generateSnapshot