added comments to StateUpdate