added docs for reset and updateState