Fixed minor issue with session handling and updated doc