Fix settle documentation example

Syntax errors and non working code