added inline comments to global state