added info about global state in docs