Fix the issue of adding obstacles when the problem is not defined

Two commits instead of one because of mistakes in the documentation.

Now the command (in a Python script)
  cl.obstacle.addObstacle ("obst1", True, True)
returns 0.