Added methods update_key, node_keys, fixed bubble functions