Added comments to state connector