change update function
remove console logs
fix bug in inheritance when adding a node
add sync function for update listener in store
add comment
re factor update mechanism
change readme