member, update, singleton, keys and values functions

@garyb Would you mind reviewing this?